package com.satan.elasticsearch.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.satan.elasticsearch.dao.entity.Hotel;
import com.satan.elasticsearch.dto.req.HotelAddReqDto;
import com.satan.elasticsearch.dto.req.HotelPageReqDto;
import com.satan.elasticsearch.dto.req.HotelSearchReqDto;
import com.satan.elasticsearch.dto.req.HotelUpdateReqDto;
import com.satan.elasticsearch.dto.resp.RestResp;

import java.io.IOException;

/**
* @author Demon
* @description 针对表【tb_hotel】的数据库操作Service
* @createDate 2024-02-16 00:40:37
*/
public interface HotelService extends IService<Hotel> {

    RestResp search(HotelSearchReqDto dto) throws IOException;


    RestResp search2(HotelSearchReqDto dto) throws IOException;


    RestResp getFilters(HotelSearchReqDto dto) throws IOException;

    RestResp getSuggestions(String key) throws IOException;

    RestResp getPage(HotelPageReqDto dto);

    RestResp saveHotel(HotelAddReqDto dto);

    RestResp updateHotel(HotelUpdateReqDto dto);

    RestResp deleteHotel(Long id);
}
